import { network } from '@/utils';
import { DetailInfoPatams, TableListParams } from './data';

import { basic } from '../../../../../config/Apis';

export async function queryVIPUserManagementDetail(params: DetailInfoPatams) {
  return network.get(basic.vip, {
    params,
  });
}

export async function queryMyExpressListID(params: DetailInfoPatams) {
  return network.get(basic.vip_allExpressIdList, {
    params,
  });
}

export async function queryExpressList(params: TableListParams) {
  return network.get(basic.vip_expressList, {
    params,
  });
}

export async function querySaveAllExpressList(params: TableListParams) {
  return network.get(basic.express_list, {
    params,
  });
}

export async function performSaveExpress(params: TableListParams) {
  return network.post(basic.vip_express, {
    data: params,
  });
}

export async function performDeleteExpress(params: TableListParams) {
  return network.deleter(basic.vip_express, {
    params,
  });
}
